package com.bootdo.clouddo.service.douban.impl;

import com.bootdo.clouddo.dao.douban.DbVodDetailMapper;
import com.bootdo.clouddo.domain.douban.DbVodDetail;
import com.bootdo.clouddo.service.douban.IDbVodDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DbVodDetailServiceImpl implements IDbVodDetailService {

    @Autowired
    private DbVodDetailMapper dao;

    @Override
    public int saveOrUpdate(DbVodDetail record) {
        return dao.insertSelective(record);
    }

    @Override
    public boolean exists(int id) {
        return dao.existsWithPrimaryKey(id);
    }
}
